package com.sola_aventuro.adventure.gui;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.JTextField;
import javax.swing.SpinnerNumberModel;

import com.sola_aventuro.adventure.gui.helpers.Strings;

public class CharacterPanel extends JPanel {

	Strings strings = new Strings();
	private static final long serialVersionUID = 1L;
	private JLabel jLabel = null;
	private JTextField tfName = null;
	private JLabel jLabel1 = null;
	private JSpinner spLevel = null;
	private JLabel jLabel2 = null;
	private JTextField tfRace = null;
	private JLabel jLabel3 = null;
	private JTextField tfClass = null;
	private JLabel jLabel4 = null;
	private JSpinner jSpinner = null;
	private JLabel jLabel5 = null;
	private JSpinner jSpinner1 = null;
	private JLabel jLabel6 = null;
	private JSpinner jSpinner2 = null;
	private JLabel jLabel7 = null;
	private JSpinner jSpinner3 = null;
	private JLabel jLabel8 = null;
	private JSpinner jSpinner4 = null;
	private JLabel jLabel9 = null;
	private JSpinner jSpinner5 = null;

	/**
	 * This is the default constructor
	 */
	public CharacterPanel() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		jLabel9 = new JLabel();
		jLabel9.setText(strings._("damage"));
		jLabel8 = new JLabel();
		jLabel8.setText(strings._("life"));
		jLabel7 = new JLabel();
		jLabel7.setText(strings._("charisma"));
		jLabel6 = new JLabel();
		jLabel6.setText(strings._("agility"));
		jLabel5 = new JLabel();
		jLabel5.setText(strings._("intelligence"));
		jLabel4 = new JLabel();
		jLabel4.setText(strings._("strength"));
		GridLayout gridLayout = new GridLayout();
		gridLayout.setRows(5);
		gridLayout.setHgap(3);
		gridLayout.setVgap(3);
		gridLayout.setColumns(4);
		jLabel3 = new JLabel();
		jLabel3.setText(strings._("class"));
		jLabel2 = new JLabel();
		jLabel2.setText(strings._("race"));
		jLabel1 = new JLabel();
		jLabel1.setText(strings._("level"));
		jLabel = new JLabel();
		jLabel.setText(strings._("name"));
		this.setLayout(gridLayout);
		this.setSize(563, 158);
		this.add(jLabel, null);
		this.add(getJTextField(), null);
		this.add(jLabel1, null);
		this.add(getJSpinner(), null);
		this.add(jLabel2, null);
		this.add(getJTextField1(), null);
		this.add(jLabel3, null);
		this.add(getJTextField2(), null);
		this.add(jLabel4, null);
		this.add(getJSpinner2(), null);
		this.add(jLabel5, null);
		this.add(getJSpinner1(), null);
		this.add(jLabel6, null);
		this.add(getJSpinner22(), null);
		this.add(jLabel7, null);
		this.add(getJSpinner3(), null);
		this.add(jLabel8, null);
		this.add(getJSpinner4(), null);
		this.add(jLabel9, null);
		this.add(getJSpinner5(), null);
	}

	/**
	 * This method initializes jTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField() {
		if (tfName == null) {
			tfName = new JTextField();
		}
		return tfName;
	}

	/**
	 * This method initializes jSpinner	
	 * 	
	 * @return javax.swing.JSpinner	
	 */
	private JSpinner getJSpinner() {
		if (spLevel == null) {
			spLevel = new JSpinner(new SpinnerNumberModel(0, 0, 20, 1));
		}
		return spLevel;
	}

	/**
	 * This method initializes jTextField1	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField1() {
		if (tfRace == null) {
			tfRace = new JTextField();
		}
		return tfRace;
	}

	/**
	 * This method initializes jTextField2	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField2() {
		if (tfClass == null) {
			tfClass = new JTextField();
		}
		return tfClass;
	}

	/**
	 * This method initializes jSpinner	
	 * 	
	 * @return javax.swing.JSpinner	
	 */
	private JSpinner getJSpinner2() {
		if (jSpinner == null) {
			jSpinner = new JSpinner();
		}
		return jSpinner;
	}

	/**
	 * This method initializes jSpinner1	
	 * 	
	 * @return javax.swing.JSpinner	
	 */
	private JSpinner getJSpinner1() {
		if (jSpinner1 == null) {
			jSpinner1 = new JSpinner();
		}
		return jSpinner1;
	}

	/**
	 * This method initializes jSpinner2	
	 * 	
	 * @return javax.swing.JSpinner	
	 */
	private JSpinner getJSpinner22() {
		if (jSpinner2 == null) {
			jSpinner2 = new JSpinner();
		}
		return jSpinner2;
	}

	/**
	 * This method initializes jSpinner3	
	 * 	
	 * @return javax.swing.JSpinner	
	 */
	private JSpinner getJSpinner3() {
		if (jSpinner3 == null) {
			jSpinner3 = new JSpinner();
		}
		return jSpinner3;
	}

	/**
	 * This method initializes jSpinner4	
	 * 	
	 * @return javax.swing.JSpinner	
	 */
	private JSpinner getJSpinner4() {
		if (jSpinner4 == null) {
			jSpinner4 = new JSpinner();
		}
		return jSpinner4;
	}

	/**
	 * This method initializes jSpinner5	
	 * 	
	 * @return javax.swing.JSpinner	
	 */
	private JSpinner getJSpinner5() {
		if (jSpinner5 == null) {
			jSpinner5 = new JSpinner();
		}
		return jSpinner5;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
